<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>03.display属性</title>
  </head>


  <style>
    /* 
    display属性
      1.block:让元素显示块级元素
      2.inline:让元素显示行内级元素
      3.inline-block:让元素同时具备行内级、块级元素的特征
      4.none:隐藏元素
     */
    .content {
      background-color: pink;
      width: 600px;
      height: 300px;
    }

    img {
      display: block-block;
    }

    a {
      display: inline-block
    }

    input {
      display: inline-block
    }
  </style>

  <body>
    <div class="content">
      <p>123</p>
      <h1>块级元素</h1>
      <img src="../img/4.jpg" alt="" width="100">
      <a href="">百度</a>
      <input type="text">
    </div>
  </body>

</html>